Adwaita: only side borders for reorderable tabs
authorLapo Calamandrei <calamandrei@gmail.com>
Tue, 24 Jun 2014 11:42:13 +0000 (13:42 +0200)
committerLapo Calamandrei <calamandrei@gmail.com>
Tue, 24 Jun 2014 11:42:13 +0000 (13:42 +0200)
gtk/resources/theme/Adwaita/_common.scss
gtk/resources/theme/Adwaita/gtk-contained-dark.css
gtk/resources/theme/Adwaita/gtk-contained.css

index b60b9c9bd227b6a527e5ab78412da890579ca897..861122cc38a400a0a58d35428930f824d50c6c89 100644 (file)
@@ -919,6 +919,9 @@ column-header {
     //notebook content frame...
     &.top, &.bottom { padding: $vt_vpadding $vt_hpadding; }
     &.left, &.right { padding: $ht_vpadding $ht_hpadding; }
+
+    /* works for testnotebookdnd, but there's a superfluous border
+       in gedit or web, commented out for now, needs gtk fixes
     &.reorderable-page {
       &.top {
         padding-top: ($vt_vpadding - 1px);
@@ -945,6 +948,17 @@ column-header {
         border-bottom-width: 1px;
       }
     }
+    */
+    &.reorderable-page {
+      &.top, &.bottom {
+        border-left-width: 1px;
+        border-right-width: 1px;
+      }
+      &.left, &.right {
+        border-bottom-width: 1px;
+        border-top-width: 1px;
+      }
+    }
     &.top {
       padding-bottom: ($vt_vpadding -$tab_indicator_size);
       border-bottom-width: $tab_indicator_size;
index 10be433142425ef84213c193df4c1450fb317997..23e08e9db8234871f06c34ab42528a269b8987fe 100644 (file)
@@ -1068,31 +1068,46 @@ column-header .button, column-header .button:hover, column-header .button:active
     border-style: solid;
     border-color: transparent;
     background-color: transparent;
-    outline-offset: 0; }
+    outline-offset: 0;
+    /* works for testnotebookdnd, but there's a superfluous border
+       in gedit or web, commented out for now, needs gtk fixes
+    &.reorderable-page {
+      &.top {
+        padding-top: ($vt_vpadding - 1px);
+        border-top-width: 1px;
+        border-left-width: 1px;
+        border-right-width: 1px;
+      }
+      &.bottom {
+        padding-bottom: ($vt_vpadding - 1px);
+        border-bottom-width: 1px;
+        border-left-width: 1px;
+        border-right-width: 1px;
+      }
+      &.left {
+        padding-left: ($ht_hpadding - 1px);
+        border-left-width: 1px;
+        border-top-width: 1px;
+        border-bottom-width: 1px;
+      }
+      &.right {
+        padding-right: ($ht_hpadding - 1px);
+        border-right-width: 1px;
+        border-top-width: 1px;
+        border-bottom-width: 1px;
+      }
+    }
+    */ }
     .notebook tab.top, .notebook tab.bottom {
       padding: 8px 20px; }
     .notebook tab.left, .notebook tab.right {
       padding: 5px 20px; }
-    .notebook tab.reorderable-page.top {
-      padding-top: 7px;
-      border-top-width: 1px;
+    .notebook tab.reorderable-page.top, .notebook tab.reorderable-page.bottom {
       border-left-width: 1px;
       border-right-width: 1px; }
-    .notebook tab.reorderable-page.bottom {
-      padding-bottom: 7px;
+    .notebook tab.reorderable-page.left, .notebook tab.reorderable-page.right {
       border-bottom-width: 1px;
-      border-left-width: 1px;
-      border-right-width: 1px; }
-    .notebook tab.reorderable-page.left {
-      padding-left: 19px;
-      border-left-width: 1px;
-      border-top-width: 1px;
-      border-bottom-width: 1px; }
-    .notebook tab.reorderable-page.right {
-      padding-right: 19px;
-      border-right-width: 1px;
-      border-top-width: 1px;
-      border-bottom-width: 1px; }
+      border-top-width: 1px; }
     .notebook tab.top {
       padding-bottom: 5px;
       border-bottom-width: 3px; }
index 564ed3b08d5900fc9766a1ccbe07f0a719469209..53c4d654d4aa19b2a8dc6534a502f760ac1f33f5 100644 (file)
@@ -1068,31 +1068,46 @@ column-header .button, column-header .button:hover, column-header .button:active
     border-style: solid;
     border-color: transparent;
     background-color: transparent;
-    outline-offset: 0; }
+    outline-offset: 0;
+    /* works for testnotebookdnd, but there's a superfluous border
+       in gedit or web, commented out for now, needs gtk fixes
+    &.reorderable-page {
+      &.top {
+        padding-top: ($vt_vpadding - 1px);
+        border-top-width: 1px;
+        border-left-width: 1px;
+        border-right-width: 1px;
+      }
+      &.bottom {
+        padding-bottom: ($vt_vpadding - 1px);
+        border-bottom-width: 1px;
+        border-left-width: 1px;
+        border-right-width: 1px;
+      }
+      &.left {
+        padding-left: ($ht_hpadding - 1px);
+        border-left-width: 1px;
+        border-top-width: 1px;
+        border-bottom-width: 1px;
+      }
+      &.right {
+        padding-right: ($ht_hpadding - 1px);
+        border-right-width: 1px;
+        border-top-width: 1px;
+        border-bottom-width: 1px;
+      }
+    }
+    */ }
     .notebook tab.top, .notebook tab.bottom {
       padding: 8px 20px; }
     .notebook tab.left, .notebook tab.right {
       padding: 5px 20px; }
-    .notebook tab.reorderable-page.top {
-      padding-top: 7px;
-      border-top-width: 1px;
+    .notebook tab.reorderable-page.top, .notebook tab.reorderable-page.bottom {
       border-left-width: 1px;
       border-right-width: 1px; }
-    .notebook tab.reorderable-page.bottom {
-      padding-bottom: 7px;
+    .notebook tab.reorderable-page.left, .notebook tab.reorderable-page.right {
       border-bottom-width: 1px;
-      border-left-width: 1px;
-      border-right-width: 1px; }
-    .notebook tab.reorderable-page.left {
-      padding-left: 19px;
-      border-left-width: 1px;
-      border-top-width: 1px;
-      border-bottom-width: 1px; }
-    .notebook tab.reorderable-page.right {
-      padding-right: 19px;
-      border-right-width: 1px;
-      border-top-width: 1px;
-      border-bottom-width: 1px; }
+      border-top-width: 1px; }
     .notebook tab.top {
       padding-bottom: 5px;
       border-bottom-width: 3px; }